import { createStore, applyMiddleware } from 'redux'
import rootReducer from './reducers'
// 让redux支持异步
import thunk from 'redux-thunk'
// 在浏览器中调试redux
import { composeWithDevTools } from 'redux-devtools-extension'

export default createStore(
  rootReducer,
  composeWithDevTools(applyMiddleware(thunk))
)
